/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wangxin
 * Date: 2024-09-24
 * Time: 17:39
 */
public class test3 {
    public static boolean hostschedule (int[][] schedule) {
        // write code here
        for(int i = 0;i < schedule.length - 1;i++){
            if(schedule[i][1] > schedule[i + 1][0]){
                return false;
            }
        }
        return true;
    }

    public static void main(String[] args) {
        int [][] schedule = {{0, 10}, {10, 20}, {20, 30}};
        boolean ret = hostschedule(schedule);
        System.out.println(ret);

    }
}
